home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Shareware / Comunicatii / jaeger / jaeger.exe / {app} / Tools / ToolDirectories.py < prev    next >
Text File  |  2004-03-27  |  1KB  |  45 lines

  1. #!/bin/python
  2.  
  3. """
  4. ToolDirectories.py
  5.  
  6. David Janes
  7. BlogMatrix
  8. 2004.02.12
  9. """
  10.  
  11. import sys
  12. import urllib
  13. import Tool
  14.  
  15. class ToolDirectories(Tool.ToolInterface):
  16.     """
  17.     The interface for your tool. Simply create an instance of this object and Jaeger
  18.     will figure it out.
  19.     """
  20.     def __init__(self, name, url):
  21.         Tool.ToolInterface.__init__(self, self.ON_ALL)
  22.         
  23.         self.name = name
  24.         self.url = url
  25.         
  26.     def get_group(self):
  27.         return    "Directories"
  28.         
  29.     def get_label(self, selected):
  30.         return    self.name
  31.         
  32.     def invoke(self, selected, operations):
  33.         operations.open_url(self.url)
  34.  
  35. #
  36. # creating it will register it
  37. #
  38. ToolDirectories("2RSS", "http://www.2rss.com/")
  39. ToolDirectories("Bloglines", "http://www.bloglines.com/dir")
  40. ToolDirectories("Blogorama", "http://www.blogarama.com/")
  41. ToolDirectories("Blogs Canada", "http://www.blogscanada.ca/directory/default.asp")
  42. ToolDirectories("Blogwise", "http://www.blogwise.com/")
  43. ToolDirectories("EatonWeb", "http://portal.eatonweb.com/")
  44. ToolDirectories("Syndicat8", "http://www.syndic8.com/")
  45.